#include "lexemview.h"

LexemView::LexemView(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
	ui.treeView->header()->setVisible(false);
}

LexemView::~LexemView()
{

}

void LexemView::setModel(SyntaxTreeNode *root)
{
	ui.treeView->setModel(new SyntaxTreeModel(root, this));
}

void LexemView::unsetModel()
{
	ui.treeView->setModel(NULL);
}